package com.qf.service;

import com.qf.pojo.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/22 19:51
 */
public interface UserService {
    Mono<User> findById(Integer id);

    void addUser(User user);

    Flux<User> findAllUser();

    Flux<User> findByNameLike(String name);

    Mono<User> findByNameEquals(String name);

    Mono<Integer> deleteByNameEquals(String name);

    void updateUser(User user);

    Mono<User> findFirstByNameLike(String name);
}
